package com.hsy.swu.spider

import retrofit2.Call
import retrofit2.http.Header
import retrofit2.http.POST
import retrofit2.http.Query

interface SwuApiService {
    @POST("jwglxt/kbcx/xskbcx_cxXsgrkb.html?gnmkdm=N253508&sf_request_type=ajax")
    fun courseList(
        @Header("Cookie") cookie: String,
        @Query("xnm") xnm: String,
        @Query("xqm") xqm: String,
    ): Call<CourseModelResponseWrapper>

    @POST("jwglxt/jcmxcx/jcmxcx_cxJcmxcxIndex.html?doType=query&gnmkdm=N759020&sf_request_type=ajax")
    fun textBookList(
        @Header("Cookie") cookie: String,
        @Query("xnm") xnm: String,
        @Query("xqm") xqm: String,
        @Query("queryType") queryType: String = "1",
        @Query("queryModel.showCount") showCount: String = "99"
    ): Call<TextbookModelResponseWrapper>

    @POST("jwglxt/kwgl/kscx_cxXsksxxIndex.html?doType=query&gnmkdm=N358105&sf_request_type=ajax")
    fun examList(
        @Header("Cookie") cookie: String,
        @Query("xnm") xnm: String,
        @Query("xqm") xqm: String,
        @Query("queryModel.showCount") showCount: String = "99"
    ): Call<ExamModelResponseWrapper>
}